package com.ellecity06.common.ktx

import android.os.Build
import com.luck.picture.lib.entity.LocalMedia

/**
 * @author ellecity06
 * @time 2024/10/29 11:25
 * @des
 */
/**
 * 获取图片的路径
 */
fun LocalMedia.upPath():String{
    return if (isCompressed){
          compressPath
    } else {
        if (Build.VERSION.SDK_INT>Build.VERSION_CODES.P){
            sandboxPath
        }else {
            path
        }
    }

}